# coding:utf-8
from docx import Document
document = Document(u'd:\\专业选修课.docx')

print(dir(document.element))
print(dir(document.element.body))
itch = document.element.body.iterchildren()
ch = next(itch)
print(ch.index)
print(type(ch))
print(dir(ch))
ch.__dict__.items()
print('\n'.join(['%s:%s' % (item, ch[str(item)]) for item in dir(ch)]))

document.paragraphs[0]
